package com.ccb.sc.common.constant;

/**
 * <p>
 * redis key 常量
 * </p>
 * @author ken
 * @version 1.0
 * @date 2020-09-14
 **/
public interface CommonRedisKey {

    /**
     * 登陆用户信息key
     */
    String LOGIN_USER = "login:user:%s";

    /**
     * 登陆用户盐值信息key
     */
    String LOGIN_SALT = "login:salt:%s";

    /**
     * 登陆用户username token
     */
    String LOGIN_USER_TOKEN = "login:user:token:%s:%s";

    /**
     * 已发送手机号验证码
     */
    String SEND_PHONE = "app:sms:send:%s";

    /**
     * 登录验证码
     */
    String LOGIN_CODE = "app:sms:login:%s";

    /**
     * 注册验证码
     */
    String REGISTER_CODE = "app:sms:register:%s";

    /**
     * 忘记密码验证码
     */
    String FORGET_CODE = "app:sms:forget:%s";

    /**
     * 忘记密码验证码
     */
    String RESET_CODE = "app:sms:reset:%s";

    /**
     * 更换手机号验证码
     */
    String CHANGE_PHONE_CODE = "app:sms:change:phone:%s";

    /**
     * 一般性内容
     */
    String COMPANY_INTRO = "content:%s";

    String LIMIT_REQUEST = "limit:";

    String GLOBAL_LIMIT_REQUEST_ONE = "glo:%s";
    String GLOBAL_LIMIT_REQUEST_FIVE = "glf:%s";
    String GLOBAL_LIMIT_REQUEST_DAY = "gld:%s";

    String BACKLIST_IP_LIMIT = "backlist:ip:limit:%s";

    String BACKLIST_IP = "backlist:ip:%s";

    String BACKLIST_MEMBERID = "backlist:id:%s";



}
